import request from "@/utils/request";

// 查询可视化大屏列表
export function list(query) {
  return request({
    url: '/screen/screen/list',
    method: 'get',
    params: query
  })
}

// 查询可视化大屏详细
export function getInfo(battalionId) {
  return request({
    url: '/screen/screen/' + battalionId,
    method: 'get'
  })
}

// 新增可视化大屏
export function add(data) {
  return request({
    url: '/screen/screen',
    method: 'post',
    data: data
  })
}

// 修改可视化大屏
export function update(data) {
  return request({
    url: '/screen/screen',
    method: 'put',
    data: data
  })
}

// 删除可视化大屏
export function del(id) {
  return request({
    url: '/screen/screen/' + id,
    method: 'delete'
  })
}
